Simulation And Case Study Of Ac Microgrid